#pragma once

#ifndef _CTRADECONTAINER_H_
#define _CTRADECONTAINER_H_

#include "CChar.h"

class CTradeContainer {

public:
	CTradeContainer();
	~CTradeContainer();

	unsigned long getGil();
	void setGil(unsigned long gil);

	unsigned short getItemID(unsigned char slotID);
	void setItemID(unsigned short itemID, unsigned char slotID);

	unsigned char getInvSlotID(unsigned char slotID);
	void setInvSlotID(unsigned char invSlotID, unsigned char slotID);

	unsigned long getQuantity(unsigned char slotID);
	void setQuantity(unsigned long quantity, unsigned char slotID);

	unsigned long getItemQuantity(unsigned short itemID);
	unsigned long getTotalQuantity();

	unsigned char getSlotCount();

	void setOwner(CChar * owner);
	CChar * getOwner();

private:
	unsigned long m_gil;

	unsigned short m_itemID[8];
	unsigned char m_invSlotID[8];
	unsigned long m_quantity[8];

	CChar * m_pOwner;
};

#endif